#define	_CRT_SECURE_NO_WARNINGS 1 

#include "SList.h"

void Test1()
{
	SLNode* plist = NULL;
	SLPushBack(&plist, 10);
	SLPushBack(&plist, 11);
	SLPushFront(&plist, 1);
	SLPushFront(&plist, 2);
	SLPushFront(&plist, 3);
	SLPushFront(&plist, 4);

	SLPrint(plist);

	SLPopFront(&plist);
	SLPopFront(&plist);

	SLPrint(plist);

	SLPopBack(&plist);
	SLPopBack(&plist);

	SLPrint(plist);

	SLNode* p1 = SLFind(&plist, 2);
	SLTInsert(&plist, p1, 3);

	SLPrint(plist);

	SLNode* p2 = SLFind(&plist, 2);
	SLTErase(&plist, p2);

	SLPrint(plist);

	SLTDestroy(&plist);

	SLPrint(plist);
}

int main()
{
	Test1();
	return 0;
}